
const { createProxyMiddleware } = require('http-proxy-middleware')
 
module.exports = function (app) {
  app.use(
    createProxyMiddleware(
      '/api', {    //以api开头的url
            target: 'https://i.maoyan.com',   //对maoyan进行反向代理配置
            changeOrigin: true,
      })
  )
}